package CSDN;

import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description: 饿汉模式
 * User: 王圆豪
 * Date: 2025-05-11
 * Time: 0:24
 */

class SingleHungry{
    private static SingleHungry p = new SingleHungry();

    private SingleHungry(){}

    public static SingleHungry getIntance(){
        return p;
    }
}
public class Test19 {
    public static void main(String[] args) {
        SingleHungry singleHungry1 = SingleHungry.getIntance();
//        SingleHungry singleHungry2 = new SingleHungry();
    }
}
